import request from '@/utils/request'

// 获取状态下拉列表
export function getStatusList() {
  return request({
    url: '/operation/web/operationListOfLaboratoryReagents/statusList',
    method: 'get'
  })
}

// 获取化验药剂清单列表
export function listLaboratoryReagents(params) {
  return request({
    url: '/operation/web/operationListOfLaboratoryReagents/list',
    method: 'get',
    params
  })
}

// 获取化验药剂清单详情
export function getLaboratoryReagents(id) {
  return request({
    url: `/operation/web/operationListOfLaboratoryReagents/${id}`,
    method: 'get'
  })
}

// 新增化验药剂清单
export function addLaboratoryReagents(data) {
  return request({
    url: '/operation/web/operationListOfLaboratoryReagents',
    method: 'post',
    data
  })
}

// 修改化验药剂清单
export function updateLaboratoryReagents(data) {
  return request({
    url: '/operation/web/operationListOfLaboratoryReagents',
    method: 'put',
    data
  })
}

// 删除化验药剂清单
export function deleteLaboratoryReagents(ids) {
  return request({
    url: `/operation/web/operationListOfLaboratoryReagents/${ids}`,
    method: 'delete'
  })
}